<template>
    <div>
        <el-form :model="userForm" :rules="rules" ref="ruleForm" label-width="0" class="demo-ruleForm login-container">
            <h3 class="title">电商后台管理系统登录</h3>
            <!-- <el-input  prefix-icon="iconfont icon-login_user" ></el-input> -->
            <el-form-item label="" prop="username">
                <el-input v-model="userForm.username"  prefix-icon="iconfont icon-login_user"></el-input>
             </el-form-item>
             <el-form-item label="" prop="password">
                <el-input v-model="userForm.password"   prefix-icon="iconfont icon-login_password"></el-input>
             </el-form-item>
             <el-checkbox v-model="checked" class="remember">记住密码</el-checkbox>
             <el-form-item>
                 <el-button type="primary" style="width:100%">登录</el-button>
             </el-form-item>
             
        </el-form>
        
    </div>
</template>
<script>
import axios from 'axios';
export default {
  data() {
    return {
      userForm: {
        username: "",
        password: ""
      },
      rules: {
        username: [{ required: true, message: "请输入用户名", trigger: "blur" }],
        password: [{ required: true, message: "请输入密码", trigger: "blur" }]
      }
    };
  }
};
</script>

<style scoped>
@import "../../assets/iconfont/iconfont.css";
.login-container {
  /* box-shadow: 0 0px 8px 0 rgba(0, 0, 0, 0.06), 0 1px 0px 0 rgba(0, 0, 0, 0.02); */
  -webkit-border-radius: 5px;
  border-radius: 5px;
  -moz-border-radius: 5px;
  background-clip: padding-box;
  margin: 100px auto;
  width: 350px;
  padding: 35px 35px 15px 35px;
  background: #fff;
  border: 1px solid #eaeaea;
  box-shadow: 0 0 25px #cac6c6;
}
.title {
  margin: 0px auto 40px auto;
  text-align: center;
  color: #505458;
}
.remember {
  margin: 0px 0px 35px 0px;
}
</style>